package ddn.dao.hibernate.pojo;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE user_profile
 * </p>
 * <p>
 * </p>
 * 
 * <p>
 * Generated at Mon May 07 17:59:06 CEST 2012
 * </p>
 * 
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "user_profile", catalog = "anjuto")
@SuppressWarnings("serial")
public class UserProfile implements Serializable {

	public UserProfile(int id, String login, String passwd, String name,
			Timestamp birthday, String gender) {

		this.birthday = birthday;
		this.id = id;
		this.login = login;
		this.name = name;
		this.passwd = passwd;
		this.gender = gender;

	}

	/**
	 * Attribute id.
	 */
	private Integer id;

	/**
	 * Attribute login.
	 */
	private String login;

	/**
	 * Attribute passwd.
	 */
	private String passwd;

	/**
	 * Attribute name.
	 */
	private String name;

	/**
	 * Attribute birthday.
	 */
	private Timestamp birthday;

	/**
	 * Attribute gender.
	 */
	private String gender;

	/**
	 * <p>
	 * </p>
	 * 
	 * @return id
	 */
	@Basic
	@Id
	@Column(name = "id")
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            new value for id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * <p>
	 * </p>
	 * 
	 * @return login
	 */
	@Basic
	@Column(name = "login", length = 45)
	public String getLogin() {
		return login;
	}

	/**
	 * @param login
	 *            new value for login
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * <p>
	 * </p>
	 * 
	 * @return passwd
	 */
	@Basic
	@Column(name = "passwd", length = 45)
	public String getPasswd() {
		return passwd;
	}

	/**
	 * @param passwd
	 *            new value for passwd
	 */
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	/**
	 * <p>
	 * </p>
	 * 
	 * @return name
	 */
	@Basic
	@Column(name = "name", length = 45)
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            new value for name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * <p>
	 * </p>
	 * 
	 * @return birthday
	 */
	@Basic
	@Column(name = "birthday")
	public Timestamp getBirthday() {
		return birthday;
	}

	/**
	 * @param birthday
	 *            new value for birthday
	 */
	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}

	/**
	 * <p>
	 * </p>
	 * 
	 * @return gender
	 */
	@Basic
	@Column(name = "gender", length = 45)
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            new value for gender
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

}